﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.master" AutoEventWireup="true" CodeFile="Themphieugiamgia.aspx.cs" Inherits="Admin_Phieugiamgia_Themphieugiamgia" %>

<%@ Register assembly="CuteEditor" namespace="CuteEditor" tagprefix="CE" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style3
        {
            width: 100%;
            height: 738px;
        }
        .style5
        {
            width: 123px;
            height: 49px;
        }
        .style6
        {
            height: 49px;
        }
        .style9
        {
            width: 123px;
            height: 32px;
        }
        .style10
        {
            height: 32px;
        }
        .style11
        {
            width: 123px;
            height: 18px;
        }
        .style12
        {
            height: 18px;
        }
        .style13
        {
            width: 123px;
            height: 20px;
        }
        .style14
        {
            height: 20px;
        }
        .style15
        {
            width: 123px;
            height: 34px;
        }
        .style16
        {
            height: 34px;
        }
        .style17
        {
            width: 123px;
            height: 21px;
        }
        .style18
        {
            height: 21px;
        }
        .style19
        {
            width: 123px;
            height: 23px;
        }
        .style20
        {
            height: 23px;
        }
        .style23
        {
            width: 123px;
            height: 28px;
        }
        .style24
        {
            height: 28px;
        }
        .style25
        {
            width: 123px;
            height: 173px;
        }
        .style26
        {
            height: 173px;
        }
        .style27
        {
            width: 123px;
            height: 16px;
        }
        .style28
        {
            height: 16px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:Label ID="Label1" runat="server" ForeColor="#FF3300" 
            Text="Thêm Phiếu Giảm Giá" Font-Bold="True" Font-Size="X-Large" 
            style="text-align: center"></asp:Label>
    <br />
    <table class="style3">
        <tr>
            <td class="style27">
                Tiêu đề:&nbsp;&nbsp;&nbsp;</td>
            <td class="style28">
    <asp:TextBox ID="TextBox1" runat="server" TextMode="MultiLine"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="TextBox1" ErrorMessage="*" ForeColor="Red" 
                    ValidationGroup="1"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style19">
                Giá gốc :&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
            <td class="style20">
            <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="TextBox2" ErrorMessage="*" ForeColor="Red" 
                    ValidationGroup="1"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                    ControlToValidate="TextBox2" ErrorMessage="Bạn phải nhập số" ForeColor="Red" 
                    ValidationExpression="\d*"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td class="style17">
                Giá bán:&nbsp;&nbsp;&nbsp;</td>
            <td class="style18">
            <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ControlToValidate="TextBox3" ErrorMessage="*" ForeColor="Red" 
                    ValidationGroup="1"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                    ControlToValidate="TextBox3" ErrorMessage="Bạn phải nhập số" ForeColor="Red" 
                    ValidationExpression="\d*"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td class="style15">
                Phần trăm giảm:</td>
            <td class="style16">
            <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                    ControlToValidate="TextBox4" ErrorMessage="*" ForeColor="Red" 
                    ValidationGroup="1"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" 
                    ControlToValidate="TextBox4" ErrorMessage="Bạn phải nhập số" ForeColor="Red" 
                    ValidationExpression="\d*"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td class="style13">
                Linkwebsite:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
            <td class="style14">
            <asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                    ControlToValidate="TextBox5" ErrorMessage="*" ForeColor="Red" 
                    ValidationGroup="1"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style5">
                Ngày bắt đầu:&nbsp;&nbsp; 
            </td>
            <td class="style6">
    <asp:Calendar ID="Calendar1" runat="server" BackColor="#FFFFCC" 
        BorderColor="#FFCC66" BorderWidth="1px" DayNameFormat="Shortest" 
        Font-Names="Verdana" Font-Size="8pt" ForeColor="#663399" Height="131px" 
        ShowGridLines="True" Width="173px">
        <DayHeaderStyle BackColor="#FFCC66" Font-Bold="True" Height="1px" />
        <NextPrevStyle Font-Size="9pt" ForeColor="#FFFFCC" />
        <OtherMonthDayStyle ForeColor="#CC9966" />
        <SelectedDayStyle BackColor="#CCCCFF" Font-Bold="True" />
        <SelectorStyle BackColor="#FFCC66" />
        <TitleStyle BackColor="#990000" Font-Bold="True" Font-Size="9pt" 
            ForeColor="#FFFFCC" />
        <TodayDayStyle BackColor="#FFCC66" ForeColor="White" />
    </asp:Calendar>
            </td>
        </tr>
        <tr>
            <td class="style25">
                Ngày kết thúc:&nbsp;&nbsp;&nbsp;</td>
            <td class="style26">
    <asp:Calendar ID="Calendar2" runat="server" BackColor="#FFFFCC" 
        BorderColor="#FFCC66" BorderWidth="1px" DayNameFormat="Shortest" 
        Font-Names="Verdana" Font-Size="8pt" ForeColor="#663399" Height="131px" 
        ShowGridLines="True" Width="177px">
        <DayHeaderStyle BackColor="#FFCC66" Font-Bold="True" Height="1px" />
        <NextPrevStyle Font-Size="9pt" ForeColor="#FFFFCC" />
        <OtherMonthDayStyle ForeColor="#CC9966" />
        <SelectedDayStyle BackColor="#CCCCFF" Font-Bold="True" />
        <SelectorStyle BackColor="#FFCC66" />
        <TitleStyle BackColor="#990000" Font-Bold="True" Font-Size="9pt" 
            ForeColor="#FFFFCC" />
        <TodayDayStyle BackColor="#FFCC66" ForeColor="White" />
    </asp:Calendar>
                <asp:Label ID="Label2" runat="server" ForeColor="Red" 
                    Text="Ngày kết thúc không được nhỏ hơn ngày bắt đầu" Visible="False"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style11">
                Hình:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
            <td class="style12">

    <asp:FileUpload ID="FileUpload1" runat="server" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                    ControlToValidate="FileUpload1" ErrorMessage="*" ForeColor="Red" 
                    ValidationGroup="1"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style9">
                Loại sản phẩm:&nbsp;&nbsp;&nbsp;&nbsp;</td>
            <td class="style10">
    <asp:DropDownList ID="DropDownList1" runat="server" 
        DataSourceID="LinqDataSource1" DataTextField="Ten_sploai1" 
        DataValueField="Id_sploai1" AutoPostBack="True">
    </asp:DropDownList>
    <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
        ContextTypeName="DLL.luuliDataContext" EntityTypeName="" 
        TableName="sanpham_loai1s">
    </asp:LinqDataSource>
            </td>
        </tr>
        <tr>
            <td class="style23">
                </td>
            <td class="style24">
    <br />
    <asp:Button ID="Button10" runat="server" onclick="Button10_Click" 
        Text="Thêm " ValidationGroup="1" />
&nbsp;&nbsp;&nbsp;
    <asp:Button ID="Button11" runat="server" Text="Xóa" />
&nbsp;&nbsp;
    <br />
            </td>
        </tr>
    </table>
    <br />
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
    <br />
    &nbsp;
    <br />
    <br />&nbsp;&nbsp;<br />
    <br />
    <br />&nbsp;<br />
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
    <br />&nbsp; 
</asp:Content>

